
package cn.edu.scau.cmi.hombio.web.rest;

import org.junit.Test;

import org.junit.runner.RunWith;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.beans.factory.support.DefaultListableBeanFactory;

import org.springframework.context.ApplicationContext;

import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;

import org.springframework.test.context.ContextConfiguration;

import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.RequestScope;
import org.springframework.web.context.request.ServletRequestAttributes;
import org.springframework.web.context.request.SessionScope;

/**
 * Unit test for the <code>PigRestController</code> controller.
 *
 * @see cn.edu.scau.cmi.hombio.web.rest.PigRestController
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {
		"file:./resources/pigRs-security-context.xml",
		"file:./resources/pigRs-service-context.xml",
		"file:./resources/pigRs-dao-context.xml",
		"file:./resources/pigRs-web-context.xml" })
public class PigRestControllerTest {
	/**
	 * The Spring application context.
	 *
	 */
	private ApplicationContext context;

	/**
	 * Test <code>Pigpig_idpigType()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigType() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigType");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigType()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostPigpig_idpigType() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigType");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigType()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutPigpig_idpigType() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigType");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigTypepigtype_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeletePigpig_idpigTypepigtype_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigType/{pigtype_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigTypepigtype_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigTypepigtype_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigType/{pigtype_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigByFemaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigByFemaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigByFemaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigByFemaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostPigpig_idpigByFemaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigByFemaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigByFemaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutPigpig_idpigByFemaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigByFemaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigByFemaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeletePigpig_idpigByFemaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigByFemaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigByFemaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigByFemaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigByFemaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigBySecondLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigBySecondLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigBySecondLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigBySecondLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostPigpig_idpigBySecondLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigBySecondLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigBySecondLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutPigpig_idpigBySecondLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigBySecondLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigBySecondLikelyMaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeletePigpig_idpigBySecondLikelyMaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigBySecondLikelyMaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigBySecondLikelyMaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigBySecondLikelyMaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigBySecondLikelyMaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigByThirdLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigByThirdLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigByThirdLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigByThirdLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostPigpig_idpigByThirdLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigByThirdLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigByThirdLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutPigpig_idpigByThirdLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigByThirdLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigByThirdLikelyMaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeletePigpig_idpigByThirdLikelyMaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigByThirdLikelyMaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigByThirdLikelyMaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigByThirdLikelyMaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigByThirdLikelyMaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigByMostLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigByMostLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigByMostLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigByMostLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostPigpig_idpigByMostLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigByMostLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigByMostLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutPigpig_idpigByMostLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigByMostLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigByMostLikelyMaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeletePigpig_idpigByMostLikelyMaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigByMostLikelyMaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigByMostLikelyMaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigByMostLikelyMaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigByMostLikelyMaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForMostLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigsForMostLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForMostLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForMostLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostPigpig_idpigsForMostLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForMostLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForMostLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutPigpig_idpigsForMostLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForMostLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForMostLikelyMaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeletePigpig_idpigsForMostLikelyMaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForMostLikelyMaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForMostLikelyMaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigsForMostLikelyMaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForMostLikelyMaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigWeights()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigWeights() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigWeights");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigWeights()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostPigpig_idpigWeights() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigWeights");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigWeights()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutPigpig_idpigWeights() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigWeights");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigWeightspigweight_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeletePigpig_idpigWeightspigweight_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigWeights/{pigweight_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigWeightspigweight_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigWeightspigweight_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigWeights/{pigweight_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForThirdLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigsForThirdLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForThirdLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForThirdLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostPigpig_idpigsForThirdLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForThirdLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForThirdLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutPigpig_idpigsForThirdLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForThirdLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForThirdLikelyMaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeletePigpig_idpigsForThirdLikelyMaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForThirdLikelyMaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForThirdLikelyMaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigsForThirdLikelyMaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForThirdLikelyMaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idtaskPigs()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idtaskPigs() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/taskPigs");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idtaskPigs()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostPigpig_idtaskPigs() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/taskPigs");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idtaskPigs()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutPigpig_idtaskPigs() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/taskPigs");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idtaskPigstaskpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeletePigpig_idtaskPigstaskpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/taskPigs/{taskpig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idtaskPigstaskpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idtaskPigstaskpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/taskPigs/{taskpig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForSecondLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigsForSecondLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForSecondLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForSecondLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostPigpig_idpigsForSecondLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForSecondLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForSecondLikelyMaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutPigpig_idpigsForSecondLikelyMaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForSecondLikelyMaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForSecondLikelyMaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeletePigpig_idpigsForSecondLikelyMaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForSecondLikelyMaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForSecondLikelyMaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigsForSecondLikelyMaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForSecondLikelyMaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idtransfers()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idtransfers() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/transfers");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idtransfers()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostPigpig_idtransfers() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/transfers");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idtransfers()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutPigpig_idtransfers() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/transfers");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idtransferstransfer_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeletePigpig_idtransferstransfer_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/transfers/{transfer_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idtransferstransfer_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idtransferstransfer_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/transfers/{transfer_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idsalePigs()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idsalePigs() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/salePigs");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idsalePigs()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostPigpig_idsalePigs() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/salePigs");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idsalePigs()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutPigpig_idsalePigs() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/salePigs");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idsalePigssalepig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeletePigpig_idsalePigssalepig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/salePigs/{salepig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idsalePigssalepig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idsalePigssalepig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/salePigs/{salepig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForFemaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigsForFemaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForFemaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForFemaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostPigpig_idpigsForFemaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForFemaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForFemaleParentId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutPigpig_idpigsForFemaleParentId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForFemaleParentId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForFemaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeletePigpig_idpigsForFemaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForFemaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idpigsForFemaleParentIdpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idpigsForFemaleParentIdpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/pigsForFemaleParentId/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idcurePigs()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idcurePigs() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/curePigs");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idcurePigs()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostPigpig_idcurePigs() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/curePigs");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idcurePigs()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutPigpig_idcurePigs() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/curePigs");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idcurePigscurepig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeletePigpig_idcurePigscurepig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/curePigs/{curepig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_idcurePigscurepig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_idcurePigscurepig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}/curePigs/{curepig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pig()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPig() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetPigpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pig()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutPig() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pig()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostPig() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Pigpig_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeletePigpig_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Pig/{pig_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		PigRestController controller = (PigRestController) context.getBean("PigRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Autowired to set the Spring application context.
	 *
	 */
	@Autowired
	public void setContext(ApplicationContext context) {
		this.context = context;
		((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope("session", new SessionScope());
		((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope("request", new RequestScope());
	}

	/**
	 * Returns a mock HttpServletRequest object.
	 *
	 */
	private MockHttpServletRequest getMockHttpServletRequest() {
		MockHttpServletRequest request = new MockHttpServletRequest();
		ServletRequestAttributes attributes = new ServletRequestAttributes(request);
		RequestContextHolder.setRequestAttributes(attributes);
		return request;
	}

	/**
	 * Returns a mock HttpServletResponse object.
	 *
	 */
	private MockHttpServletResponse getMockHttpServletResponse() {
		return new MockHttpServletResponse();
	}
}